package com.sita.bluetactivity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

/**
 * Created by Jason on 2016/9/9.
 */
public class CarActivity extends Activity implements View.OnClickListener{
    private ImageView start_img,lock_img,alarm_img;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.car_activity);
        start_img = (ImageView) findViewById(R.id.vehicle_engine);
        start_img.setOnClickListener(this);
        lock_img = (ImageView) findViewById(R.id.vehicle_lockbtn);
        lock_img.setOnClickListener(this);
        alarm_img = (ImageView) findViewById(R.id.vehicle_alarmbtn);
        alarm_img.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.vehicle_engine:
                break;
            case R.id.vehicle_lockbtn:
                break;
            case R.id.vehicle_alarmbtn:
                break;
        }
    }
    public static void getIntent(Context context){
        Intent intent = new Intent(context,CarActivity.class);
        context.startActivity(intent);
    }
}
